package adv1;

public class StrTest2 {

	public static void main(String[] args) {
		String str = "我喜欢功能强大的java和python";
		int pos = str.indexOf("强");
		System.out.println(pos);
		int pos2 = str.indexOf('大', 10);
		System.out.println(pos2);

		String s2 = str.substring(3, 7);
		System.out.println(s2);
		double pi = 3.14159;
		String sp = String.valueOf(pi);
		System.out.println("pi=" + sp);
	}

}
